home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / make-367.lha / make-3.67 / rule.h < prev    next >
C/C++ Source or Header  |  1993-02-21  |  2KB  |  52 lines

  1. /* Copyright (C) 1988, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
  2. This file is part of GNU Make.
  3.  
  4. GNU Make is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.
  8.  
  9. GNU Make is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. GNU General Public License for more details.
  13.  
  14. You should have received a copy of the GNU General Public License
  15. along with GNU Make; see the file COPYING.  If not, write to
  16. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18. /* Structure used for pattern rules.  */
  19.  
  20. struct rule
  21.   {
  22.     struct rule *next;
  23.     char **targets;        /* Targets of the rule.  */
  24.     unsigned int *lens;        /* Lengths of each target.  */
  25.     char **suffixes;        /* Suffixes (after `%') of each target.  */
  26.     struct dep *deps;        /* Dependencies of the rule.  */
  27.     struct commands *cmds;    /* Commands to execute.  */
  28.     char terminal;        /* If terminal (double-colon).  */
  29.     char in_use;        /* If in use by a parent pattern_search.  */
  30.   };
  31.  
  32. /* For calling install_pattern_rule.  */
  33. struct pspec
  34.   {
  35.     char *target, *dep, *commands;
  36.   };
  37.  
  38.  
  39. extern struct rule *pattern_rules;
  40. extern struct rule *last_pattern_rule;
  41. extern unsigned int num_pattern_rules;
  42.  
  43. extern unsigned int max_pattern_deps;
  44. extern unsigned int max_pattern_dep_length;
  45.  
  46. extern struct file *suffix_file;
  47. extern unsigned int maxsuffix;
  48.  
  49.  
  50. extern void install_pattern_rule ();
  51. int new_pattern_rule ();
  52.